<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Creative Dragon.com</title>
    <style>
  body {
    margin: 0;
    padding: 0;
    background-color: rgb(205, 255, 204);
    font-family: Arial, sans-serif;
  }

  h1 {
    color: red;
    text-align: center;
    font-family: "Lucida Handwriting", cursive;
    font-size:50px;
  }

  .container {
    width: 700px; /* 加宽一点 */
    margin: 0 auto;
    background-color: purple;
    border: 2px solid purple;
    border-radius: 0; /* 将边框圆角改为直角 */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative; /* 添加相对定位，以便绝对定位内边框线 */
  }

  input[type="text"]{
    width: calc(50% - 20px); /* 将输入框宽度调整为一半，并减去一定的间距 */
    padding: 10px;
    margin-top: 30px;
    margin-bottom: 50px;
    border: 1px solid white;
    border-radius: 5px;
    box-sizing: border-box;
    color: white;
  }
  input[type="password"] {
    width: calc(50% - 20px); /* 将输入框宽度调整为一半，并减去一定的间距 */
    padding: 10px;
    margin-bottom: 40px;
    border: 1px solid white;
    border-radius: 5px;
    box-sizing: border-box;
    color: white;
  }

  input[type="submit"], input[type="reset"] {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  input[type="submit"] {
    background-color: dodgerblue;
    color: white;
  }

  input[type="reset"] {
    background-color: #ccc;
  }

  input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #187bcd;
  }

  .hint {
    font-size: 0.8em;
        margin-top: -45px; /* 调整上边距使得与输入框对齐 */
    margin-left: 50px; /* 调整左边距使得与输入框对齐 */
    color: white;
  }

  input[type="text"],
input[type="password"] {
    color: black; /* 修改文字颜色为黑色 */
    background-color: white; /* 修改背景颜色为白色 */
}
.container::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid white;
    border-radius: 0;
    pointer-events: none; /* 禁用伪元素上的鼠标事件 */
}


</style>
</head>
<body>

<h1>Creative Dragon.com</h1>

<div class="container">
    <form action="login" method="post">
        <label for="username" style="color: white;">用户 Id：</label>
        <input type="text" id="username" name="username">
        <div class="hint">例如：“john21@yahoo.com 或 john_martin@msn.com”</div><br>
        <label for="password" style="color: white;">密码：</label>
        <input type="password" id="password" name="password">
        <br>
        <input type="submit" value="登录">
        <input type="reset" value="清除">
    </form>
</div>

</body>
</html>
